package com.crm.model.entity.sys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SalesmanSupportLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SalesmanSupportLogExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdIsNull() {
            addCriterion("supported_account_id is null");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdIsNotNull() {
            addCriterion("supported_account_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdEqualTo(String value) {
            addCriterion("supported_account_id =", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdNotEqualTo(String value) {
            addCriterion("supported_account_id <>", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdGreaterThan(String value) {
            addCriterion("supported_account_id >", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdGreaterThanOrEqualTo(String value) {
            addCriterion("supported_account_id >=", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdLessThan(String value) {
            addCriterion("supported_account_id <", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdLessThanOrEqualTo(String value) {
            addCriterion("supported_account_id <=", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdLike(String value) {
            addCriterion("supported_account_id like", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdNotLike(String value) {
            addCriterion("supported_account_id not like", value, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdIn(List<String> values) {
            addCriterion("supported_account_id in", values, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdNotIn(List<String> values) {
            addCriterion("supported_account_id not in", values, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdBetween(String value1, String value2) {
            addCriterion("supported_account_id between", value1, value2, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedAccountIdNotBetween(String value1, String value2) {
            addCriterion("supported_account_id not between", value1, value2, "supportedAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameIsNull() {
            addCriterion("supported_user_name is null");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameIsNotNull() {
            addCriterion("supported_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameEqualTo(String value) {
            addCriterion("supported_user_name =", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameNotEqualTo(String value) {
            addCriterion("supported_user_name <>", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameGreaterThan(String value) {
            addCriterion("supported_user_name >", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("supported_user_name >=", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameLessThan(String value) {
            addCriterion("supported_user_name <", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameLessThanOrEqualTo(String value) {
            addCriterion("supported_user_name <=", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameLike(String value) {
            addCriterion("supported_user_name like", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameNotLike(String value) {
            addCriterion("supported_user_name not like", value, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameIn(List<String> values) {
            addCriterion("supported_user_name in", values, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameNotIn(List<String> values) {
            addCriterion("supported_user_name not in", values, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameBetween(String value1, String value2) {
            addCriterion("supported_user_name between", value1, value2, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportedUserNameNotBetween(String value1, String value2) {
            addCriterion("supported_user_name not between", value1, value2, "supportedUserName");
            return (Criteria) this;
        }

        public Criteria andSupportDateIsNull() {
            addCriterion("support_date is null");
            return (Criteria) this;
        }

        public Criteria andSupportDateIsNotNull() {
            addCriterion("support_date is not null");
            return (Criteria) this;
        }

        public Criteria andSupportDateEqualTo(Integer value) {
            addCriterion("support_date =", value, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateNotEqualTo(Integer value) {
            addCriterion("support_date <>", value, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateGreaterThan(Integer value) {
            addCriterion("support_date >", value, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateGreaterThanOrEqualTo(Integer value) {
            addCriterion("support_date >=", value, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateLessThan(Integer value) {
            addCriterion("support_date <", value, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateLessThanOrEqualTo(Integer value) {
            addCriterion("support_date <=", value, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateIn(List<Integer> values) {
            addCriterion("support_date in", values, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateNotIn(List<Integer> values) {
            addCriterion("support_date not in", values, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateBetween(Integer value1, Integer value2) {
            addCriterion("support_date between", value1, value2, "support_date");
            return (Criteria) this;
        }

        public Criteria andSupportDateNotBetween(Integer value1, Integer value2) {
            addCriterion("support_date not between", value1, value2, "support_date");
            return (Criteria) this;
        }

        public Criteria andContentIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andContentIsNotNull() {
            addCriterion("content is not null");
            return (Criteria) this;
        }

        public Criteria andContentEqualTo(Integer value) {
            addCriterion("content =", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotEqualTo(Integer value) {
            addCriterion("content <>", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThan(Integer value) {
            addCriterion("content >", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentGreaterThanOrEqualTo(Integer value) {
            addCriterion("content >=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThan(Integer value) {
            addCriterion("content <", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentLessThanOrEqualTo(Integer value) {
            addCriterion("content <=", value, "content");
            return (Criteria) this;
        }

        public Criteria andContentIn(List<Integer> values) {
            addCriterion("content in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotIn(List<Integer> values) {
            addCriterion("content not in", values, "content");
            return (Criteria) this;
        }

        public Criteria andContentBetween(Integer value1, Integer value2) {
            addCriterion("content between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andContentNotBetween(Integer value1, Integer value2) {
            addCriterion("content not between", value1, value2, "content");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("content is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNull() {
            addCriterion("create_tm is null");
            return (Criteria) this;
        }

        public Criteria andCreateTmIsNotNull() {
            addCriterion("create_tm is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTmEqualTo(Date value) {
            addCriterion("create_tm =", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotEqualTo(Date value) {
            addCriterion("create_tm <>", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThan(Date value) {
            addCriterion("create_tm >", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("create_tm >=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThan(Date value) {
            addCriterion("create_tm <", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmLessThanOrEqualTo(Date value) {
            addCriterion("create_tm <=", value, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmIn(List<Date> values) {
            addCriterion("create_tm in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotIn(List<Date> values) {
            addCriterion("create_tm not in", values, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmBetween(Date value1, Date value2) {
            addCriterion("create_tm between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andCreateTmNotBetween(Date value1, Date value2) {
            addCriterion("create_tm not between", value1, value2, "createTm");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdIsNull() {
            addCriterion("support_account_id is null");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdIsNotNull() {
            addCriterion("support_account_id is not null");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdEqualTo(String value) {
            addCriterion("support_account_id =", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdNotEqualTo(String value) {
            addCriterion("support_account_id <>", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdGreaterThan(String value) {
            addCriterion("support_account_id >", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdGreaterThanOrEqualTo(String value) {
            addCriterion("support_account_id >=", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdLessThan(String value) {
            addCriterion("support_account_id <", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdLessThanOrEqualTo(String value) {
            addCriterion("support_account_id <=", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdLike(String value) {
            addCriterion("support_account_id like", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdNotLike(String value) {
            addCriterion("support_account_id not like", value, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdIn(List<String> values) {
            addCriterion("support_account_id in", values, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdNotIn(List<String> values) {
            addCriterion("support_account_id not in", values, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdBetween(String value1, String value2) {
            addCriterion("support_account_id between", value1, value2, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportAccountIdNotBetween(String value1, String value2) {
            addCriterion("support_account_id not between", value1, value2, "supportAccountId");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameIsNull() {
            addCriterion("support_user_name is null");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameIsNotNull() {
            addCriterion("support_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameEqualTo(String value) {
            addCriterion("support_user_name =", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameNotEqualTo(String value) {
            addCriterion("support_user_name <>", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameGreaterThan(String value) {
            addCriterion("support_user_name >", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("support_user_name >=", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameLessThan(String value) {
            addCriterion("support_user_name <", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameLessThanOrEqualTo(String value) {
            addCriterion("support_user_name <=", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameLike(String value) {
            addCriterion("support_user_name like", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameNotLike(String value) {
            addCriterion("support_user_name not like", value, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameIn(List<String> values) {
            addCriterion("support_user_name in", values, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameNotIn(List<String> values) {
            addCriterion("support_user_name not in", values, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameBetween(String value1, String value2) {
            addCriterion("support_user_name between", value1, value2, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andSupportUserNameNotBetween(String value1, String value2) {
            addCriterion("support_user_name not between", value1, value2, "supportUserName");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNull() {
            addCriterion("update_tm is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIsNotNull() {
            addCriterion("update_tm is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTmEqualTo(Date value) {
            addCriterion("update_tm =", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotEqualTo(Date value) {
            addCriterion("update_tm <>", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThan(Date value) {
            addCriterion("update_tm >", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("update_tm >=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThan(Date value) {
            addCriterion("update_tm <", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmLessThanOrEqualTo(Date value) {
            addCriterion("update_tm <=", value, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmIn(List<Date> values) {
            addCriterion("update_tm in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotIn(List<Date> values) {
            addCriterion("update_tm not in", values, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmBetween(Date value1, Date value2) {
            addCriterion("update_tm between", value1, value2, "updateTm");
            return (Criteria) this;
        }

        public Criteria andUpdateTmNotBetween(Date value1, Date value2) {
            addCriterion("update_tm not between", value1, value2, "updateTm");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}